from django.http import HttpResponse
#from django.template import loader
from django.shortcuts import render_to_response
from django.template import Context, loader

__author__ = 'toti'

def index(request):
    title = 'Educator 3000 - Where people learn or die'
    return render_to_response('home/index.html', {'title': title})

def test(request):
    template = loader.get_template('home/index.html')
    title = 'Educator 3000 - Where people learn or die'
    context = Context({
        'title': title
    })
    return HttpResponse(template.render(context))

# template doc
#https://docs.djangoproject.com/en/dev/ref/templates/builtins/?from=olddocs